finite automata questions and answers